#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
__title__ = 'thread test'
__author__ = 's125_nanoorchis'
__mtime__ = '2017/3/21'
"""
import _thread
from time import sleep,ctime
def loop0():
    print("start loop0 at: "+ctime())
    sleep(4)
    print("finish loop0 at: "+ctime())

def loop1():
    print("start loop1 at: " + ctime())
    sleep(3)
    print("finish loop1 at: " + ctime())

def main():
    print("start main at: " + ctime())
    _thread.start_new_thread(loop0,())
    _thread.start_new_thread(loop1,())
    loop1()
    print("All done at: " + ctime())

main()